<template>
  <div class="body">
    <div class="head">
      <p class="tou">
        <van-icon name="manager-o" size="173px"/>
      </p>
      <div>
        <p class="p1">Welcome</p>
        <p class="p2">哈喽，欢迎来到宝宝的世界</p>
      </div>
      <div class="main">
        <p class="register">
          <van-button type="default" @click="register()">注册</van-button>
        </p>
        <p class="register">
          <van-button type="default" @click="login()">登录</van-button>
        </p>
      </div>
      <div class="foot">
        <p class="help">help?</p>
      </div>
    </div>
  </div>
</template>

<script>

export default {
  name: "Registerorlogin",
  data() {
    return {};
  },
  methods: {
    register() {
      this.$router.push("/register");
    },
    login() {
      this.$router.push("/login");
    }
  }
};
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
.body{
  height: 100%;
}

.head {
  width: 100%;
  height: 100%;
  line-height: 20px;
  background-color: rgba(251, 144, 30, 1);
  text-align: center;
  padding-top: 40px;
  box-sizing: border-box
}
.tou {
  margin-left: 102px;
  width: 173px;
  height: 173px;
}
.main {
  margin-left: 15px;
  height: 300px;
}
.p1 {
  display: inline-block;
  width: 94px;
  height: 42px;
  line-height: 29px;
  text-align: center;
  color: rgba(255, 255, 255, 1);
  font-size: 20px;
  text-align: center;

}
.p2 {
  margin-left: 50px;
  width: 261px;
  height: 42px;
  line-height: 29px;
  color: rgba(255, 255, 255, 1);
  font-size: 20px;
  text-align: center;


}
.tou {
  color: aliceblue;
  width: 173px;
  height: 173px;
}
.register {
  width: 337px;
  height: 46px;
  line-height: 29px;
  border-radius: 521px;
  background-color: rgba(255, 255, 255, 1);
  color: rgba(16, 16, 16, 1);
  font-size: 20px;
  text-align: center;
  margin-top: 20px;
  overflow: hidden;
}
.help {
  margin-left: 255px;
  top: 718px;
  width: 94px;
  height: 42px;
  line-height: 29px;
  color: rgba(255, 255, 255, 1);
  font-size: 20px;
  text-align: right;

}
.van-button{
  width: 100%
}
</style>
